<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Home\Protype;
class ProtypeController extends Controller
{
    //获取所有分类导航
    public function getDirectionsNav(){
        $data = Protype::where('status',2) -> get();
        if($data){
            $data = array(
                'success' => true,
                'resultObject' => $data
            );
        }else{
            $data['success'] = false;
        }
        return response() -> json($data);
    }
}
